package com.tanhua.dubbo.api.mongo;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

public interface MovementApi {

    void saveMovements(Movement movement);

    PageResult findMovements(Integer page, Integer pagesize, Long userId,Integer state);

    PageResult findFriendsMovements(Integer page, Integer pagesize, Long userId);

    List<Movement> findByPids(List<Long> pidList);

    List<Movement> ramdomMovements(Integer pagesize);

    Movement findById(String movementId);

    void update(String movementId, Integer state);


    void updateByIds(String[] ids, Integer state);
}